package com.net.xpay.admin.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
public class ApiMonitorVo {

    @ApiModelProperty(notes = "接口名称")
    private String apiName;

    @ApiModelProperty(notes = "接口路径")
    private String api;

    @ApiModelProperty(notes = "日期")
    private LocalDate day;

    @ApiModelProperty(notes = "请求总数")
    private Long reqCount;

    @ApiModelProperty(notes = "请求成功总数")
    private Long reqSuccessCount;

    @ApiModelProperty(notes = "每小时平均请求数")
    private Long hourAvgReqCount;

    @ApiModelProperty(notes = "每小时最大请求数")
    private Long hourMaxReqCount;

    @ApiModelProperty(notes = "每小时最小请求数")
    private Long hourMinReqCount;

    @ApiModelProperty(notes = "异常数")
    private Long errReqCount;

    @ApiModelProperty(notes = "成功率")
    private BigDecimal successRate;

    @ApiModelProperty(notes = "总耗时（毫秒）")
    private Long totalReqCostTime;

    @ApiModelProperty(notes = "平均耗时（毫秒）")
    private Long avgReqCostTime;

    @ApiModelProperty(notes = "最大耗时（毫秒）")
    private Long maxReqCostTime;

    @ApiModelProperty(notes = "最小耗时（毫秒）")
    private Long minReqCostTime;

}
